import request from '@/utils/request'

// 查询毕设管理列表
export function listThesis(query) {
  return request({
    url: '/thesis/thesis/list',
    method: 'get',
    params: query
  })
}

// 查询毕设管理详细
export function getThesis(thesisInfoId) {
  return request({
    url: '/thesis/thesis/' + thesisInfoId,
    method: 'get'
  })
}

// 新增毕设管理
export function addThesis(data) {
  return request({
    url: '/thesis/thesis',
    method: 'post',
    data: data
  })
}

// 修改毕设管理
export function updateThesis(data) {
  return request({
    url: '/thesis/thesis',
    method: 'put',
    data: data
  })
}

// 删除毕设管理
export function delThesis(thesisInfoId) {
  return request({
    url: '/thesis/thesis/' + thesisInfoId,
    method: 'delete'
  })
}
